﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StudentDetails.aspx.cs" Inherits="WEEK11_上课演示.StudentDetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                             width=600px>
                <Fields>
                    <asp:BoundField HeaderText="学号" DataField="StudentID" />
                    <asp:BoundField HeaderText="姓名" DataField="Name"/>
                    <asp:BoundField HeaderText="性别" DataField="Gender"/>
                    <asp:BoundField HeaderText="出生日期" DataField="DayOfBirth"/>
                    <asp:BoundField HeaderText="地址" DataField="Address"/>
                    <asp:BoundField HeaderText="系" DataField="Department"/>
               
                    <asp:ImageField DataAlternateTextField="Name" DataImageUrlField="Photo" 
                                    DataImageUrlFormatString="images/{0}" HeaderText="头像">
                    </asp:ImageField>
               
                </Fields>
            </asp:DetailsView>
            <div>
    
            </div>
        </form>
    </body>
</html>